import random
hide_hard =random.randint(1,100)
count = 0
while True:
    if count<10:
        guess = input("请输入你猜想的数字")
        guess_digit = int(guess)
        if guess_digit>hide_hard:
            print("你猜的数字太大了")
        elif guess_digit<hide_hard:
            print("你猜的数字太小了")
        else:
            print("恭喜你猜对了")
            print("游戏结束")
            break
